package com.neusoft.neuiotms.dcam.workflow.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "neuiot_workorder_confirm_sl")
@org.hibernate.annotations.Table(appliesTo = "neuiot_workorder_confirm_sl", comment = "总行确认表")
public class ConfirmSL extends AbstractAuditModel {

    private static final long serialVersionUID = 1L;

    @Length(max = 1000, message = "工单号不能超过{max}位")
    @Column(length = 1000)
    @Comment("varchar(200) COMMENT '工单号'")
    private String workOrderNum;

    @Length(max = 225, message = "任务Id不能超过{max}位")
    @Column(length = 225)
    @Comment("varchar(225) COMMENT '任务Id'")
    private String taskId;

    @Column(length = 225, nullable = false)
    @Comment("varchar(225) COMMENT '创建人'")
    private String createUser;

    @Column(length = 225, nullable = false)
    @Comment("varchar(225) COMMENT '创建人姓名'")
    private String createUserName;

    @Column(nullable = false)
    private Long mainId;

}
